namespace FastSocket.Server.Config
{
    public class Server
    {
        /// <summary>
        /// 服务名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 端口号
        /// </summary>
        public int Port { get; set; }

        /// <summary>
        /// Socket Buffer Size
        /// 默认8192 bytes
        /// </summary>
        public int SocketBufferSize { get; set; }

        /// <summary>
        /// Message Buffer Size
        /// 默认1024 bytes
        /// </summary>
        public int MessageBufferSize { get; set; }

        /// <summary>
        /// max message size,
        /// 默认4MB
        /// </summary>
        public int MaxMessageSize { get; set; }
        
        /// <summary>
        /// 最大连接数，默认2W
        /// </summary>
        public int MaxConnections { get; set; }
        
        /// <summary>
        /// ServiceType
        /// </summary>
        public string ServiceType { get; set; }

        /// <summary>
        /// 协议
        /// </summary>
        public string Protocol { get; set; }
    }
}